Aspect Ratio Camera Data Structure
You use an aspect ratio camera data structure to get or set information about an aspect ratio camera. An aspect ratio camera data structure is defined by theTQ3ViewAngleAspectCameraData
data type.
typedef struct TQ3ViewAngleAspectCameraData { TQ3CameraData cameraData; float fov; float aspectRatioXToY; } TQ3ViewAngleAspectCameraData;
Field Description
cameraData
- A camera data structure specifying basic information about the aspect ratio camera.
fov
- The camera's maximum field of view. This parameter should contain a positive floating-point value specified in radians. If the value in the
aspectRatioXToY
field is greater than 1.0, the field of view is vertical; if the value in theaspectRatioXToY
field is less than 1.0, the field of view is horizontal.aspectRatioXToY
- The camera's horizontal-to-vertical aspect ratio. To avoid distortion, this ratio should be the same as the ratio of the width to the height of the camera's view port.